package com.csun.cmny.provider.service;


import com.csun.cmny.provider.pojo.CacBigItem;

public interface CacBigItemService {
    /**
     * 添加小项
     * author:liqian
     * date:2018-10-31 11:58
     */
    int insert(CacBigItem bigItem);

    /**
     * 根据小项id修改小项
     * author:liqian
     * date:2018-10-30 13:52
     */
    int update(CacBigItem bigItem);

    /**
     * 根据小项id查询小项
     * author:liqian
     * date:2018-10-30 13:55
     */
    CacBigItem selectCbiById(Integer bigItemId);

    /**
     * 根据小项id删除小项
     * author:liqian
     * date:2018-10-30 13:58
     */
    int delById(Integer bigItemId);

    /**
     * 根据CacMinorItem查询CacMinorItem
     * author:liqian
     * date:2018-10-31 13:18
     */
    CacBigItem selectByCbi(CacBigItem bigItem);

    /**
     * 根据类别id删除大项
     * author:liqian
     * date:2018-10-31 15:58
     */
    int delByTypeId(Integer cacTypeId);

    /**
     * 根据大项id查询大项及大项下的小项
     * author:liqian
     * date:2018-11-01 14:58
     */
    CacBigItem selectById(Integer bigItemId);
}
